package com.jxl.coreplay.vo
{
	import com.jxl.coreplay.constants.VideoConstants;
	import com.jxl.coreplay.controls.IVideo;
	
	public class StreamConfigurationVO
	{
		
		public var type:String;
		public var rtmp:String;
		public var streamName:String;
		public var progressiveVideoURL:String;
		public var autoPlay:Boolean;
		public var video:IVideo;
		public var connectionType:String;
		
		public function StreamConfigurationVO(type:String,
												connectionType:String,
												autoPlay:Boolean,
												rtmpOrProgressiveURL:String,
												streamName:String=""):void
		{
			this.type						= type;
			this.connectionType				= connectionType;
			if(type == VideoConstants.PROGRESSIVE)
			{
				this.progressiveVideoURL	= rtmpOrProgressiveURL;
			}
			else
			{
				this.rtmp					= rtmpOrProgressiveURL
				this.streamName				= streamName;
			}
			this.autoPlay					= autoPlay;
		}

	}
}